package com.hyper_yang.javase.supplement.tryEnum.enumBefore;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

public class GenderTest {

    @DisplayName("JDK1.5之前 enum 枚举类型")
    @Test
    public void test(){
        Person person = new Person();
        person.setName("张三");
//        person.setGender(Gender.MAN);
        person.setGender(Gender.WOMAN);
        System.out.println(person);
    }
}
